{% extends "../base.html" %}

{% block title %} pyutility: Image Service {% endblock title %}

{% block content %}
<div class="nav">
<a  href="/">返回首页</a>
</div>

<center>
{% if show_result %}
<div><a href="/imageservice/upload">Upload Another Image</div>
<div> 您的图片的URL是 http://{{HOST}}/imageservice/get/{{imageid}}</div>
<div><img src="/imageservice/get/{{imageid}}"></div>
{% else %}

  <form action="/imageservice/upload" method="post" enctype="multipart/form-data">
	  <input type="file" name="imagefile"/>
	  <input type="submit" value="upload" />
  </form>
  <div>请不要上传大于900K的图片</div>
{% endif %}
</center>
{% endblock content %}